<?php
require_once 'PicasaSync.php';

$picasaSync = new PicasaSync();

// Creates a session
$picasaSync->getSession();

// Returns Album feed
$picasaSync->getAlbums();
//$albumName="Samantha";

// Creates a new Album with the given name
//$picasaSync->addAlbum($albumName);

$albumId="5580454288173228097";
$photo=array
		(
			'name'=> 'Samantha.jpg',
			'type'=> 'image/jpeg',
			'tmp_name' => 'C:\\Samantha.jpg',
			'error' => 'UPLOAD_ERR_OK'
		); 

// Uploades the given photo to a album with $albumId as album ID. Need to pass Photo as an Array
$picasaSync->uploadPhoto($albumId, $photo);

// Deletes an Album with the given albumId
//$picasaSync->deleteAlbum($albumId);

// Deletes a photo with given PhotoId in given album with AlbumId
//$photoId="5466300123619572578";
//$picasaSync->deletePhoto($albumId, $photoId);
// Destroys the session
$picasaSync->destroySession();
?>